<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	 MasterPageFile="~/App_ThemeMasters/NoStyle/AdminOneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Ajax.NitobiBasePage" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Ajax" TagPrefix="saj" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="ScsAspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardAdminHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<script runat="server">
	public string TitleFormat = "$company.name$ - User Response Management";
</script>

<asp:Content ID="c1" ContentPlaceHolderID="title" runat="server">
	<%SecurityPrivilege = "AppFunctions.ManageArticles"; %>
    <h1 ID="ImgCacheLibLbl" runat="server" >User Response Management</h1>
    <swf:BizProc ID="userResp" runat="server" FactoryName="userResponses">
		<ParentBizProc id="loginBP" />
    </swf:BizProc>
    <swf:BizProc ID="formArt" runat="server" FactoryName="genericArticles">
		<State includeSelf="true" entireTree="false" listDetailLevel="idAndTitle" pushFormData="true" />
		<ParentBizProc id="userResp" fieldName="article.id" dataId="pid" />
		<ParentBizProc id="userResp" fieldName="formData" dataId="formData" />
    </swf:BizProc>
	<div class="HelpBtnArea" style="float:right">
		<asp:HyperLink runat="server" ID="_pageHelp" NavigateUrl="../std/Help.aspx?helpid=ArticleManagementHelp" Target="help">Help</asp:HyperLink>
	</div>
</asp:Content>

<asp:Content ID="c3" ContentPlaceHolderID="mainContent" runat="server">
	<table class="pageWidth" ><tr><td>
    <div class="SimpleVerticalBg"> 
	    <saj:Grid ID="articleList1Display" runat="server" Width="350px" Height="600px"  
		    ShowToolbar="false" ParentBizProcIds="userResp" Mode="LiveScrolling" Resizable="Both" SelectionMode="Single">
		    <Columns>
			    <ntb:KeyColumn DataField="id" />
			    <ntb:BoundColumn DataField="article.name" HeaderText="Form Name" width="300" />
			    <ntb:DateColumn DataField="lastUpdated" HeaderText="Date" Width="100" />
			    <ntb:BoundColumn DataField="user.userName" HeaderText="User" Width="100" />
		    </Columns>
	    </saj:Grid>
    </div>
</td><td>
        <art:ArticleTranslationDisplay runat="server" ID="ad1"
	        ParentBizProcIds="formArt" 
	        ReadOnlyTemplate="Articles.Gui.AspNet.ArticleRODisplay">
	        <macros imageRes="Thumbnail" />
        </art:ArticleTranslationDisplay>
</td></tr></table>    
</asp:Content>
